package com.atu.atugra.controller;
 
 
 
import com.atu.atugra.entity.Admins;
import com.atu.atugra.service.AdminsService;
import com.atu.atugra.tools.CommonResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
 
/**
 * (Admins)表控制层
 *
 * @author makejava
 * @since 2025-02-07 12:01:18
 */
@RestController
@RequestMapping("admins")
public class AdminsController{
    @Autowired
    private AdminsService adminsService;
    @PostMapping("login")
    public CommonResult login(@RequestBody Admins admin){
        return adminsService.login(admin);
    }
}
